package com.ls.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ls.entity.UserLoginDTO;
import com.ls.pojo.User;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaoruan
 * @since 2023-04-24
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from t_user where username=#{username} and password=#{password}")
    User login(UserLoginDTO userLoginDTO);
}
